package com.manong.bookstore.produce.feign;

import com.manong.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient("bookstore-store")
public interface StoreFeignService {
    @RequestMapping("/store/category/getName/{categoryId}")
    public String getCategoryName(@PathVariable("categoryId") Integer categoryId);

    @RequestMapping("/store/category/getNames/{storeId}")
    Object[] getCategoryNames(@RequestParam Map<String, Object> params, @PathVariable("storeId") Integer storeId);
}
